import routers from "./config";
import React from "react";
import PriteRouter from "../components/private-router/";
// const Routers = 

const CreateRoutesList= (url:String):any => {
  return routers.map((route:any) => (
    <PriteRouter
      path={`${url}${route.path}`}
      exact={route.exact}
      strict={route.strict}
      key={route.key}
      component={route.component}
      meta = {route.meta}
    ></PriteRouter>
  ));
}

export default CreateRoutesList;
